<html>
<body>
<p>This tests crash when copying a text without a common ancestor block. To manually test, copy "hello" below and WebKit should not crash. On DRT, you should see PASS below.</p>
<span id="test" contenteditable>hello</span>
<script type="text/javascript">

if (window.testRunner)
    testRunner.dumpAsText();

var test = document.getElementById('test');
document.getSelection().selectAllChildren(test);
document.execCommand('copy');

test.innerHTML = 'PASS';

</script>
</body>
</html>
